#include <stdio.h>
#include "seqlist.h"

int main() {
    SeqList list;
    initSeqList(&list);

    registerUser(&list, "user1", "pass1");
    registerUser(&list, "user2", "pass2");
    loginUser(&list, "user1", "pass1");
    loginUser(&list, "user2", "wrongpass");

    addUser(&list, "user3", "pass3");
    deleteUserByName(&list, "user2");
    deleteLastUser(&list);

    modifyUserPassword(&list, "user1", "newpass1");
    findUserByName(&list, "user1");

    printAllUsers(&list);

    return 0;
}